class NewsFunctionalTests extends functionaltestplugin.FunctionalTestCase {
    void testNewsIndex() {
        get("/new")
        assertStatus 200
        click("publish your new!")
        assertStatus 200
    }
    
    void testCreateNew() {
        get("/new/create")
        assertStatus 200
        assertContentContainsStrict "Create"
        post("/new/save") {
			title "grails"
			content "grails rocks!"
			tags "java groovy grails"
		}
        assertRedirectUrlContains "/new/show/"
    }
}
